package firstPack;

import org.newdawn.slick.AppGameContainer;
import org.newdawn.slick.GameContainer;
import org.newdawn.slick.SlickException;
import org.newdawn.slick.state.StateBasedGame;

/**
 * This Class starts up the game by loading in the other states and creating
 * the main game container
 * @author El Jefe
 *
 */
public class MainStateBased extends StateBasedGame{
	
	public MainStateBased(String title){
		super(title);
	}
	
	
	public static void main(String[] args) throws SlickException{
		AppGameContainer app = new AppGameContainer(new MainStateBased("Setup Test"));
		app.setDisplayMode(1024, 768, false);
		app.setAlwaysRender(true);
		
		app.start();
	}

	@Override
	public void initStatesList(GameContainer container) throws SlickException {
		addState(new GameState());
		addState(new GameOverState());
		addState(new PlayGameState());
		addState(new PauseGameState());
		addState(new HighScoreDisp());
		addState(new CreditState());
//		System.out.println(this.getStateCount());
		
	}

}
